SELECT person.address,
       ROUND((MAX(age) - MIN(age::numeric) / MAX(age)),2) AS formula,
       ROUND(AVG(age),2) AS average,
       CASE
            WHEN ROUND((MAX(age) - MIN(age::numeric) / MAX(age)),2) > ROUND(AVG(age),2) THEN 'true'
            ELSE 'false'
       END AS comparison
FROM person
GROUP BY person.address
ORDER BY 1;

